package org.example.zuoye.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName appoint
 */
@Data
public class Appoint implements Serializable {
    /**
     * 预约id
     */
    private Integer appId;

    /**
     * 患者id
     */
    private Integer patId;

    /**
     * 挂号费用
     */
    private Double money;

    /**
     * 放号id
     */
    private Integer scheduleId;
    /**
     * 预约时间
     */
    @JsonFormat( pattern = "yyyy-MM-dd hh:mm", timezone = "GMT+8")
    @DateTimeFormat( pattern = "yyyy-MM-dd hh:mm")
    private Date appointTime;

    /**
     * 预约状态
     */
    private String status;
    /**
     * 挂号评价
     */
    private String remark;

    /**
     * 医生实体类
     */
    private Doctor doctor;
    /**
     * 病人实体类
     */
    private Patient patient;

    /**
     * 放号模型
     */
    private Schedules schedules;

}